home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 86 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.std.c
  2. Path: harlequin.co.uk!daveb
  3. From: daveb@harlqn.co.uk (Dave Berry)
  4. Subject: Re: Undefined result vs. int's holding undefined values.
  5. Message-ID: <DL2CFs.FG0@harlequin.co.uk>
  6. Sender: usenet@harlequin.co.uk (Usenet Maintainer)
  7. Organization: Harlequin Ltd.
  8. References: <4ck70b$rd7@news.informix.com> <oZA8wQ9ytpjN084yn@csn.net> <4cs460$d6e@news.informix.com> <DKyIx1.1qr@ukpsshp1.serigate.philips.nl>
  9. Date: Fri, 12 Jan 1996 10:14:16 GMT
  10.  
  11. baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes) writes:
  12. >Daniel Wood (dwood@informix.com) wrote:
  13. >: Do any machines exist which actually explode when you add two number together
  14. >: such that the result would exceed MAXINT? :-)  Get practical!
  15. >
  16. >VAXes
  17. >If you set the apropriate bit in the process status word then integer overflow
  18. >causes a trap.
  19.  
  20. The SPARC and MIPS processors also have integer instructions that trap on
  21. overflow.
  22.  
  23. Dave.
  24.  
  25. -- 
  26. One more touch and then you'll see            Harlequin Ltd.,
  27. Worlds of hidden mystery,                Barrington Hall,
  28. Visions of beyond recall.                Barrington,
  29. (You know you're only dreaming).            Cambridge, UK.
  30.